const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // 判断环境
  publicPath: process.env.NODE_ENV === 'production'
    ? '/'
    : '/',
  // 关闭eslint
  lintOnSave: false,
  //配置title 
  chainWebpack: config => {
    config
      .plugin('html')
      .tap(args => {
        args[0].title = '仿网易云音乐'
        return args
      })
  },
})
